# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=iisbruteforcer
pkgver=16
pkgrel=1
groups=('blackarch' 'blackarch-cracker')
arch=('x86_64' 'aarch64')
pkgdesc="HTTP authentication cracker. It's a tool that launchs an online dictionary attack to test for weak or simple passwords against protected areas on an IIS Web server."
url='http://www.open-labs.org/'
license=('custom')
depends=('openssl')
makedepends=('gcc')
source=("http://www.open-labs.org/${pkgname}${pkgver}.tar.gz")
sha512sums=('707c2b6a5dd8cc734ad888ae17f201723d03763f86f112d0bf479cb7d7dd9efe89d21bfc68e896a970f4667bcb4d09fb9ce32d2475090e01fc621aa37c39f735')

prepare() {
  chmod 755 "$pkgname"
}

build() {
  make
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  install -Dm 755 iisbf "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.txt TODO.txt

  cp -a dict "$pkgdir/usr/share/$pkgname/dict"
}

